package org.jeecg.common.system.api.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * @Description: timing_log
 * @Author: jeecg-boot
 * @Date:   2022-12-06
 * @Version: V1.0
 */
@Data
@TableName("timing_log")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="timing_log对象", description="timing_log")
public class TimingLog implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
	/**提醒内容标题*/
	@Excel(name = "提醒内容标题", width = 15)
    @ApiModelProperty(value = "提醒内容标题")
    private String noticeTitle;
	/**要提醒的那条数据id*/
	@Excel(name = "要提醒的那条数据id", width = 15)
    @ApiModelProperty(value = "要提醒的那条数据id")
    private String noticeId;
	/**提醒用户*/
	@Excel(name = "提醒用户", width = 15)
    @ApiModelProperty(value = "提醒用户")
    private String username;
	/**提醒方式*/
	@Excel(name = "提醒方式", width = 15, dicCode = "notice_way")
	@Dict(dicCode = "notice_way")
    @ApiModelProperty(value = "提醒方式")
    private String noticeWay;
	/**模块名称*/
	@Excel(name = "模块名称", width = 15)
    @ApiModelProperty(value = "模块名称")
    private String modelName;
	/**发送时间*/
	@Excel(name = "发送时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "发送时间")
    private java.util.Date noticeTime;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
//    @TableField(fill=FieldFill.INSERT)
    private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
//    @TableField(fill=FieldFill.INSERT)
    private java.util.Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
//    @TableField(fill= FieldFill.UPDATE)
    private String updateBy;
	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
//    @TableField(fill=FieldFill.UPDATE)
    @ApiModelProperty(value = "更新时间")
    private java.util.Date updateTime;
}
